home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / sysv-rc.preinst < prev    next >
Text File  |  2009-10-19  |  829b  |  37 lines

  1. #! /bin/sh
  2. # preinst script for sysv-rc
  3.  
  4. set -e
  5.  
  6. # summary of how this script can be called:
  7. #        * <new-preinst> `install'
  8. #        * <new-preinst> `install' <old-version>
  9. #        * <new-preinst> `upgrade' <old-version>
  10. #        * <old-preinst> `abort-upgrade' <new-version>
  11.  
  12. case "$1" in
  13.     upgrade)
  14.     # Remain in legacy mode during upgrades, unless insserv is
  15.     # already activated.
  16.     if [ ! -f /var/lib/insserv/using-insserv ] &&
  17.         dpkg --compare-versions "$2" lt 2.87dsf-3 ; then
  18.         touch /etc/init.d/.legacy-bootordering
  19.     fi
  20.         echo "$2" > /var/run/sysv-rc.upgrade
  21.         ;;
  22.     install)
  23.         # Ubuntu does not use this by default
  24.     touch /etc/init.d/.legacy-bootordering
  25.         ;;
  26.  
  27.     abort-upgrade)
  28.         ;;
  29.  
  30.     *)
  31.         echo "preinst called with unknown argument \`$1'" >&2
  32.         exit 0
  33.     ;;
  34. esac
  35.  
  36. exit 0
  37.